dav1d: treat RGB formats separately
authorTristan Matthews <tmatth@videolan.org>
Sat, 31 Aug 2024 16:58:27 +0000 (12:58 -0400)
committerSebastian Ramacher <sramacher@debian.org>
Tue, 14 Jan 2025 22:09:47 +0000 (23:09 +0100)
commitc65972c2cf4489994ba5393b478b2011aa1681b0
tree4b581e312d089bb229df33c8bc77247d22034c9c
parentc50085d4f470f0415dbe078b15665e9efc23d676
dav1d: treat RGB formats separately

This avoids incorrectly matching as GBR.
Fixes #28763 which was missing checks for the matrix and primaries.

This also replaces the loop with a constant-time lookup.

(cherry picked from commit ece317a245e8c32a5efc11d5e82dcd8a28a2f10b)

Gbp-Pq: Name 0027-dav1d-treat-RGB-formats-separately.patch
modules/codec/dav1d.c